package com.dongfanggroup.report.mapper;

import com.dongfanggroup.report.domain.ReportOrder;
import com.dongfanggroup.report.domain.req.ReportOrderReq;

import java.util.List;

/**
 * 报障单Mapper接口
 *
 * @author wangsr
 * @date 2021-12-16
 */
public interface ReportOrderMapper {
    /**
     * 查询报障单
     *
     * @param id 报障单主键
     * @return 报障单
     */
    public ReportOrder selectReportOrderById(Long id);

    /**
     * 查询报障单列表
     *
     * @param reportOrder 报障单
     * @return 报障单集合
     */
    public List<ReportOrder> selectReportOrderList(ReportOrderReq reportOrder);

    /**
     * 新增报障单
     *
     * @param reportOrder 报障单
     * @return 结果
     */
    public int insertReportOrder(ReportOrder reportOrder);

    /**
     * 修改报障单
     *
     * @param reportOrder 报障单
     * @return 结果
     */
    public int updateReportOrder(ReportOrder reportOrder);

    /**
     * 删除报障单
     *
     * @param id 报障单主键
     * @return 结果
     */
    public int deleteReportOrderById(Long id);

    /**
     * 批量删除报障单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteReportOrderByIds(Long[] ids);

    ReportOrder selectReportOrderByReportId(String reportId);

}
